﻿using System;
using System.ComponentModel;
using System.Windows;
using System.Globalization;
using System.Windows.Data;

namespace CodeCounsel.SharePoint.RibbonDesigner.View.TypeConverters
{
    class ScaleCountToVisibilityConverter
        : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            int intValue = (int)value;
            return intValue > 1 ? Visibility.Visible : Visibility.Hidden;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
